#ifndef LOADER_H
#define LOADER_H

#include <QImage>

class Texture;
class Object;
class ObjMesh;

enum FurnitureType
{
    BUILDING,
    CHAIR,
    DESK,
    GENERAL
};

struct FurnitureDescription
{
    FurnitureType type;
    QString name;
    QImage preview;
};


namespace Loader
{
    void setLibrary(const QString &libraryPath);

    QString getLibraryPath();

    QList<FurnitureDescription> getLibraryInfoList();

    ObjMesh* loadMesh(FurnitureType type, const QString &name, Texture** texReturn = NULL);

    Object* loadObject(FurnitureType type, const QString &name);
}

#endif // LOADER_H
